import request from '@/utils/request'

//列表
export const indexApi = async (params) => {
    return await request.get({ 
        url: `/api/appMenus/index`,
        params
    })
}

//新增
export const addApi = async (data) => {
    return await request.post({ 
        url: `/api/appMenus/add`,
        data
    })
}

//编辑
export const editApi = async (data) => {
    return await request.post({ 
        url: `/api/appMenus/edit`,
        data
    })
}

//删除
export const delApi = async (data) => {
    return await request.post({ 
        url: `/api/appMenus/del`,
        data
    })
}

//更新字段
export const updateFieldApi = async (data) => {
    return await request.post({ 
        url: `/api/appMenus/edit?update=field`,
        data
    })
}